import axios from './axios';

//主页面发送Svg请求
export const getSvg = () => axios.get('/captcha');
//发送登录请求
export const postLogs = (data) => axios.post('/login',data);
//发送上传文件请求
export const postFile = (data) => axios.post('/upload',data);

//发送获取用户列表请求
export const getUserList = () => axios.get('/userlist');
//发送获取路径列表请求
export const getPathList = () => axios.get('/pathlist');
//发送获取文件列表请求
export const getFileList = () => axios.get('/filelist');

//发送删除用户请求
export const DeleteUser = (data) => axios.post('/deleteuser',data);
//发送删除路径请求
export const DeletePath = (data) => axios.post('/deletepath',data);
//发送删除文件请求
export const DeleteFile = (data) => axios.post('/deletefile',data);

//发送更改用户信息请求
export const UpdateUser = (data) => axios.post('/updateuser',data);
//发送更改路径信息请求
export const UpdatePath = (data) => axios.post('/updatepath',data);
//发送更改文件信息请求
export const UpdateFile = (data) => axios.post('/updatefile',data);

//发送添加用户请求
export const AddUser = (data) => axios.post('/adduser',data);
//发送添加路径请求
export const AddPath = (data) => axios.post('/addpath',data);
//发送添加文件请求
export const AddFile = (data) => axios.post('/addfile',data);